package com.dobai.abroad.dongbysdk.core.framework.live

import com.ling.sdk.live.LiveUI

abstract class Presenter<V : Presenter.IView<*>>(val view: V) : LiveUI() {


    override fun onAttachLive(token: String) {
        super.onAttachLive(token)
        view.onBindView()
        onInit()
    }

    abstract fun onInit()

    interface IView<P> {
        fun setPresenter(presenter: P)
        fun onBindView()
    }

}